#ifndef PIKMEN_H
#define PIKMEN_H

#include "CSurface.h"
#include "Character.h"
#include "Behavior/AllBehavior.h"
#include "Animation.h"

#include <SDL/SDL.h>
#include <vector>

#define LIFE_PIKMEN 40

using namespace std;

class Pikmen : public Character {
    protected:
        vector<Animation *>animations;
        Animation *currentAnimation;
        Uint32 _animation_oldtime;
        //Para el estado
        Character* player;
        bool  enemysCerca();
        Character* enemyMasCercano();
        // A cada cuanto tiempo el pikmen imprime olor
        long timeOlor;
        long oldTimetoOlor;
    public:
        SDL_Surface* carita;
        Pikmen();
        bool OnInit(Character* target=NULL);
        bool OnInit(vector<Character*>* ch,vector<Obstacle*>* ob,vector<Character*> *en,int posX, int posY,Character* target=NULL);
        void OnRender(SDL_Surface* display);
        void OnLoop(long time);
};

#endif
